package org.oneblog.service;

import java.util.List;

import org.oneblog.data.bean.ArticleSolr;
import org.oneblog.data.bean.CategoryFacet;
import org.oneblog.data.bean.HotTag;
import org.oneblog.data.query.ArticleSolrQuery;
import org.oneblog.data.rs.Result;
import org.oneblog.view.ArticleView;
import org.oneblog.view.RelativeViews;

public interface IArticleService {

    Result<ArticleView> queryArticles(ArticleSolrQuery solrQuery);
    
    //热门标签
    List<HotTag> allHotTags();
    
    //热门文章，推荐文章
    List<ArticleView> hotArticles();
    //推荐文章
    List<ArticleView> priorityArticles();
    
    int upsertArticle(ArticleSolr articleSolr, Long userId);
    
    ArticleView detail(String articleId);
    
    CategoryFacet categoryFacet();
    
    //相关文章
    List<ArticleView> relativeArticles(String id);
    
    //相关：上一篇，下一篇
    RelativeViews getRelativeViews(String id);
    
    //推送站点信息到百度搜索引擎
    void pushUrlToBaidu();
    
    int setGood(String articleId, String outIp, String localIp);
    
}
